<div>
{if count($Module.messages) > 0}
    {foreach $Module.messages as $message}
        {notification type=$message->getType() title=$message->getTitle() message=$message->getMessage()}
    {/foreach}
{/if}
</div>